php get country code from country name

99

php use BrightNucleus\CountryCodes\Country; // Get the name from an ISO 3166 country code. $name = Country::getNameFromCode( 'US' ); // Returns 'United States'. // Get the ISO 3166 country code from a country name. $code = Country::getCodeFromName( 'United States' ); // Returns 'US

Comments

Submit
0 Comments